#!/bin/sh

base_dir=/home/no-delete/stock/bin
cd ../
mvn clean package -Dmaven.test.skip=true

rm -rf $base_dir
mkdir $base_dir
cp conf/* $base_dir/
cp scripts/* $base_dir/
cp target/crawler-0.0.1-SNAPSHOT-jar-with-dependencies.jar $base_dir/
chmod -R a+x $base_dir/*.sh
echo "deploy success"
cd -


